import Echo from "laravel-echo";
import Pusher from "pusher-js/react-native";
global.Pusher = Pusher;

const echo = new Echo({
    broadcaster: 'pusher',
    key: 'W9Ek0ZFonLa8iD16gxbl',
    wsHost: 'pusher.noodlebox.ie',
    wssPort: 443,
    //forceTLS: 'https',
    enabledTransports: ['ws', 'wss'],
    debug: false, // 关键调试选项
    logToConsole: false, // 在控制台输出日志
    cluster: 'mt1',
});

export default echo;
